<%@ page import="com.gaozhaoyang.entity.User" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: 754165242
  Date: 2022/3/7
  Time: 20:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%request.setAttribute("msg",10);

    User user = new User(1001, "pgone", "洗头");
    ArrayList<User> list = new ArrayList<User>();
    list.add(user);
    request.setAttribute("list",list);
%>

<%--算术型--%>
${msg+10} <br>
${msg-10} <br>
${msg*10} <br>
${msg/10}  ${msg div 10}<br>
${msg%10}  ${msg mod 10}<br>
<br>
<br>
<%--逻辑性--%>
${msg>10 && msg<=20}  ${msg>10 and msg<=20}   <br>
${msg>10 || msg<=20}  ${msg>10 or msg<=20} <br>
${!(msg>10)}   ${not(msg>10)}<br>
<br>
<br>
<%--关系型--%>
${msg>10}  ${msg gt 10}<br>
${msg<10}  ${msg lt 10}<br>
${msg==10}  ${msg eq 10}<br>
${msg!=10}  ${msg ne 10}<br>
${msg>=10}  ${msg ge 10}<br>
${msg<=10}  ${msg le 10}<br>
<br>
<br>
<%--判空--%>
${list!=null}  ${not empty list} <br>
${list==null}  ${empty list} <br>
<br>
<br>
<%--三元运算符--%>
${msg>10?"大于":"小于"}
${msg>10?true:false}<br>
</body>
</html>
